package April._20.work4;

import java.io.*;

public class MyThread extends Thread {
    private File sourceFile;
    private File targetFile;
    public MyThread(String name,File sourceFile, File targetFile) {
        super(name);
        this.sourceFile=sourceFile;
        this.targetFile=targetFile;
    }

    @Override
    public void run() {
        try {
            Copy.copyFile(sourceFile,targetFile);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }


}
